# Contributor: knuxify <knuxify@gmail.com>
# Maintainer: team/kde <bribbers@disroot.org>

# The group tag is just to easily find this APKBUILD by some scripts for automation
# group=maui
pkgname=mauikit-terminal
pkgver=4.0.0
pkgrel=0
pkgdesc="Terminal support components for Maui applications"
url="https://mauikit.org/"
# armhf blocked by mauikit -> qt5-qtdeclarative
arch="all !armhf"
license="GPL-2.0-or-later"
depends="kirigami"
depends_dev="
	kconfig-dev
	kcoreaddons-dev
	ki18n-dev
	kpty-dev
	mauikit-dev
	qt6-qtbase-dev
	"
makedepends="$depends_dev
	extra-cmake-modules
	samurai
	"
subpackages="$pkgname-dev $pkgname-lang"
_repo_url="https://invent.kde.org/maui/mauikit-terminal.git"
source="https://download.kde.org/stable/maui/mauikit-terminal/$pkgver/mauikit-terminal-$pkgver.tar.xz"
options="!check" # no tests

build() {
	cmake -B build -G Ninja \
		-DCMAKE_BUILD_TYPE=RelWithDebInfo \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
9a80715eb0475821a839496397d0ef77ed2ca06fd10dc5a32f2050af135a50d82adbc1c1b0337ddd7d0e1da299d5eb1a9be390a7060691ed841279e9d1d4a56b  mauikit-terminal-4.0.0.tar.xz
"
